﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using vensoft.Entities;
using vensoft.BussinesLogic;

namespace vensoft.Win32
{
    public partial class frmDetallarVenta : Form
    {
        public frmDetallarVenta()
        {
            InitializeComponent();
        }

        public Venta CurrentVenta
        {
            get { return ventaBindingSource.Current as Venta; }
            set
            {
                ventaBindingSource.DataSource = value;
            }
        }

        public List<Cliente> CurrentCliente
        {
            get { return clienteBindingSource.Current as List<Cliente>; }
            set
            {
                clienteBindingSource.DataSource = value;
            }
        }

        public List<DetalleVenta> DetalleVenta
        {
            get { return detalleVentaBindingSource.Current as List<DetalleVenta>; }
            set
            {
                detalleVentaBindingSource.DataSource = value;
            }
        }

        public Usuario CurrentUsuario
        {
            get { return usuarioBindingSource.Current as Usuario; }
            set
            {
                usuarioBindingSource.DataSource = value;
            }
        }

        private void btnAceptar_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void frmDetallarVenta_Load(object sender, EventArgs e)
        {
            
        }
    }
}
